package edu.sctu.practice.class02.lvchang.abstractClass;

import java.util.Scanner;

/**
 * Created by Administrator on 2015/9/18.
 */
public class Circle extends Shape {

    Scanner input = new Scanner(System.in);
    int r = input.nextInt();


    @Override
    public void perimeter() {

        System.out.println("圆形的周长为：" + (2 * r * Math.PI));
    }

    @Override
    public void area() {

        System.out.println("圆形的面积为：" + (Math.PI * r * r));
    }
}
